package cn.itcast.bos.controller;

import cn.itcast.bos.domain.base.TakeTime;
import cn.itcast.bos.service.TakeTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by Administrator on 2018/12/27.
 */
@RestController
@RequestMapping("/taketime")
public class TakeTimeController {

    @Autowired
    private TakeTimeService takeTimeService;

    @RequestMapping("findAll")
    public List<TakeTime> findAll() {
        // 调用业务层，查询所有收派时间
        return takeTimeService.findAll();

    }
}
